package com.easyjob.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easyjob.annotation.VerifyParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * 分类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("chapter")
public class Chapter implements Serializable {

    /**
     * 分类ID
     */
    private Integer chapterId;

    /**
     * 名称
     */
    @VerifyParam(required = true)
    private String chapterName;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 图标
     */
    private String iconPath;

    /**
     * 背景颜色
     */
    private String bgColor;

    /**
     * 题库Id
     */
    private Integer categoryId;

    @TableField(exist = false)
    private String categoryName;

    @TableField(exist = false)
    private Integer bankId;

    @TableField(exist = false)
    private String bankName;

}
